package com.yang.service.impl;

import com.yang.dao.NoteThingsDao;
import com.yang.entity.NoteThings;
import com.yang.service.NoteThingsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 事件表(NoteThings)表服务实现类
 *
 * @author yangdacheng
 * @since 2022-03-02 19:11:03
 */
@Service("noteThingsService")
public class NoteThingsServiceImpl implements NoteThingsService {
    @Resource
    private NoteThingsDao notethingsDao;

    @Override
    public Boolean insertNoteThings(NoteThings noteThings) {
        return notethingsDao.insertNoteThings(noteThings);
    }

    @Override
    public Boolean updateNoteThings(NoteThings noteThings) {
        return notethingsDao.updateNoteThings(noteThings);
    }

    @Override
    public Boolean deleteNoteThings(String thingsID) {
        return notethingsDao.deleteNoteThings(thingsID);
    }

    @Override
    public List<NoteThings> queryAllThings() {
        return notethingsDao.queryAllThings();
    }

    @Override
    public NoteThings queryThingsByID(String thingsID) {
        return notethingsDao.queryThingsByID(thingsID);
    }

    @Override
    public Integer queryPunchByState(String thingsID) {
        return notethingsDao.queryPunchByState(thingsID);
    }

    @Override
    public List<NoteThings> queryAllThingNoPunch() {
        return notethingsDao.queryAllThingNoPunch();
    }

    @Override
    public Double queryPunchConvertSend(String userID, Integer beforeDay, Integer isSend, Integer punchState) {
        return notethingsDao.queryPunchConvertSend(userID, beforeDay, isSend, punchState);
    }

    @Override
    public Integer queryNumberByEmailAfter(String userID, Integer state) {
        return notethingsDao.queryNumberByEmailAfter(userID, state);
    }

    @Override
    public Integer queryNumberBySmsAfter(String userID, Integer state) {
        return notethingsDao.queryNumberBySmsAfter(userID,state);
    }
}